package cn.gok;

import java.util.stream.Stream;

public class 流构造 {
    public static void main(String[] args) {
        流构造1();
    }

    private static void 流构造1() {
        //从常数构造流
        Stream stream = Stream.of("a","b","c");
        stream.forEach(System.out::println);
        System.out.println("-----");
    }

}
